package com.hurl.library.spider;

import java.util.ArrayList;
import java.util.List;

import com.hurl.library.util.StringUtils;

public class SimpleMultiUrlPattern implements MultiUrlPattern{
	List<String> urlist = new ArrayList<String>();
	private int idx = 0;
	public void addUrl(String url){
		if(StringUtils.isNotBlank(url))
				urlist.add(url);
	}
	@Override
	public String nextUrl() {
		String url = null;
		if(idx<urlist.size()){
			url = urlist.get(idx);
		}
		idx++;
		return url;
	}

}
